package trlygjj.tanruiliyigenjinjin.mapper;

import trlygjj.tanruiliyigenjinjin.domain.ClassRoom;
import trlygjj.tanruiliyigenjinjin.query.QueryObject;

import java.util.List;

public interface ClassRoomMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ClassRoom record);

    ClassRoom selectByPrimaryKey(Long id);

    List<ClassRoom> selectAll();

    int updateByPrimaryKey(ClassRoom record);

    /**
     * 查询总条数
     * @param qo 查询对象的信息
     * @return
     */
    int queryForCount(QueryObject qo);

    /**
     * 分页的查询
     * @param qo 查询对象的信息
     * @return
     */

    List<ClassRoom> queryForList(QueryObject qo);

    /**
     * 根据classRoomId 改变状态值,
     * @param classRoomId
     */

    void changeState(Long classRoomId);
}